//
//  IGNCommentApi.h
//  jingdongfang
//
//  Created by BOE on 2018/5/17.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import "IGBaseRequest.h"
#import "IGCommentBean.h"

///>共用模块评论新接口

#pragma --<发表评论>
@interface IGSubmitCommentApi : IGBaseRequest

@property (nonatomic, assign) IGCommentPageType type;     ///>1、画作  2、画单  3、话题
@property (nonatomic, copy) NSString *productId;      ///>画作、画单、话题 ID
@property (nonatomic, copy) NSString *content;  ///>评论内容
@property (nonatomic, copy) NSString *parentId; ///>上级评论ID

@end

@interface IGSubmitCommentModel : IGBaseModel

@end

@interface IGSubmitCommentResp : IGBaseResp

@property (nonatomic, strong) IGSubmitCommentModel *data;

@end

#pragma --<评论List>
@interface IGNCommentListApi : IGBaseRequest

@property (nonatomic, assign) IGCommentPageType type;           ///>1 画作 2 画单 3 话题
@property (nonatomic, copy) NSString *productId;                ///>画作id/画单id/话题id
@property (nonatomic, copy) NSString *lastQueryId;              ///>最后一个记录的id
//@property (nonatomic, assign) NSInteger pageSize;             ///>默认10
@property (nonatomic, assign) NSInteger pageNum;                ///>页码

@end

@interface IGNCommentListModel : IGBaseModel

@property (nonatomic, copy) NSArray<IGCommentBean> *hotComments;
@property (nonatomic, copy) NSArray<IGCommentBean> *comments;
@property (nonatomic, copy) NSString *lastQueryId;
@property (nonatomic, copy) NSString *count;

@end

@interface IGNCommentListResp : IGBaseResp

@property (nonatomic, copy) IGNCommentListModel *data;

@end

#pragma --<评论点赞>
@interface IGNCommentZanApi : IGBaseRequest

@property (nonatomic, assign) IGCommentPageType type;           ///>1 画作 2 画单 3 话题
@property (nonatomic, copy) NSString *commentId;                ///>评论ID
@property (nonatomic, copy) NSString *isLike;                   ///>0-取消点赞  1 -点赞

@end

@interface IGNCommentZanModel : IGBaseModel

@end

@interface IGNCommentZanResp : IGBaseResp

@property (nonatomic, copy) IGNCommentZanModel *data;

@end

#pragma --<评论删除>
@interface IGNCommentDelApi : IGBaseRequest

@property (nonatomic, assign) IGCommentPageType type;           ///>1 画作 2 画单 3 话题
@property (nonatomic, copy) NSString *commentId;                ///>评论ID

@end

@interface IGNCommentDelModel : IGBaseModel

@end

@interface IGNCommentDelResp : IGBaseResp

@property (nonatomic, copy) IGNCommentZanModel *data;

@end
